package com.htjc.integral.activity.util;

import java.io.Serializable;
import java.util.List;

import lombok.Data;

@Data
public class PageVo<T> implements Serializable {

	/**
	 * 序列化版本
	 */
	private static final long serialVersionUID = -4717321465251391405L;
	
	private long PAGE_SIZE= 8;// 页大小
	private long ROW_COUNT = 0;// 记录总数
	private long PAGE_COUNT;// 总页数
	private long CUR_PAGE = 1;// 当前页码
	private long START;// 起始行数
	
	private int CONTINUE_SIGN_DAYS;//连续签到天数
	private int PRE_MONTH_SIGN_DAYS;//本月签到次数
	private int TOTAL_SIGN_DAYS;//累计签到次数
	private int GRAND_TOTAL_POINTS;//累计积分奖励
	
	private List<T> RESULT_LIST;// 结果集存放Listes;

	public long getPAGE_COUNT() {
		PAGE_COUNT = ROW_COUNT%PAGE_SIZE == 0 ?ROW_COUNT/PAGE_SIZE: ROW_COUNT/PAGE_SIZE+1;
		return PAGE_COUNT;
	}

	public long getSTART() {
		this.START= (CUR_PAGE-1) * PAGE_SIZE;
		return START;
	}
	
	
	
}
